Make numeric keypad work.
authorElliot Lee <sopwith@src.gnome.org>
Wed, 9 Aug 2000 19:58:10 +0000 (19:58 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Wed, 9 Aug 2000 19:58:10 +0000 (19:58 +0000)
Make numeric keypad work.

gdk/linux-fb/gdkinput-ps2.c

index 38f6872babe2f1de15f08aa6eb7965b1147d60bd..fb7333cd505612cbcdeb88df45c8b304ac3bb54e 100644 (file)
@@ -1068,21 +1068,21 @@ static const guint trans_table[256][3] = {
   {GDK_F10, 0, 0},
   {0, 0, 0},
   {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
+  {'7', 0, 0},
+  {'8', 0, 0},
+  {'9', 0, 0},
+  {'-', 0, 0},
+  {'4', 0, 0},
+  {'5', 0, 0},
+  {'6', 0, 0},
+  {'+', 0, 0},
+  {'1', 0, 0},
 
        /* 0x50 */
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
-  {0, 0, 0},
+  {'2', 0, 0},
+  {'3', 0, 0},
+  {'0', 0, 0},
+  {'.', 0, 0},
   {0, 0, 0},
   {0, 0, 0},
   {0, 0, 0},
@@ -1097,7 +1097,7 @@ static const guint trans_table[256][3] = {
   {0, 0, 0},
 
        /* 0x60 */
-  {0, 0, 0},
+  {GDK_Return, 0, 0},
   {0, 0, 0},
   {0, 0, 0},
   {0, 0, 0},